<ion-modal-view>
    <ion-header-bar>
        <div ng-click="send_mail.hide()" class="buttons" style="padding-left: 15px">
            <i   style="display: block;width: 22px;height:22px;margin-top: 4px;background: url('img/back.png') center/22px 22px"></i>
        </div>
        <h1 class="title">发送文档到邮箱</h1>
        <div class="buttons" ng-click="send_mail.done()" ng-if="mailData.sendMailUrl">
            <button style="background-color: #fff;color: #3B3B3B" class="button">发送</button>
        </div>
        <div class="buttons" ng-if="!mailData.sendMailUrl">
            <button style="background-color: #fff;color: #bfbfbf" class="button">发送</button>
        </div>
    </ion-header-bar>
    <ion-content class="bg-fff">
        <div style="height: 10px;background-color: #f0eff5"></div>
        <div class="list" >
            <label class="item item-input" style="border-top: none">
                <input type="text" ng-model="mailData.sendMailUrl" placeholder="请输入接收邮箱地址">
            </label>
        </div>
        <div ng-if="snedMailHistory.length>0" style="font-size: 14px;color: #4c4c4c;padding-left: 10px;">发送记录</div>
        <ul class="mt20 list">
            <li class="item" ng-repeat="i in snedMailHistory track by $index">
                <div ng-click="mailData.sendMailUrl=i">{{i}}</div>
            </li>
        </ul>
        <button ng-if="snedMailHistory.length>0" ng-click="delsnedEmailHis()" class="button button-block button-positive">清空记录</button>
    </ion-content>

</ion-modal-view>